package com.dingreading.cloud.mall.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.mall.dto.RealUsableNumDto;
import com.dingreading.cloud.mall.entity.WhStockIn;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface WhStockInService extends IService<WhStockIn> {

    Page<WhStockIn> pageList(PageUtil pageUtil, String keyword, Integer status, String beginDate, String endDate);

    // 获取多个商品规格的剩余库存数量
    Map<Long, Integer> getStockNumMap(List<Long> goodsTypeIds);

}
